var vue = new Vue({
			el: "body",
			data: {
				products: "",
				name: "",
				shoucang:"收藏",
			},
			created: function() {
				var APP_ID = '9etyUbhi95RBWTaoLBTyW5HP-gzGzoHsz';
				var APP_KEY = '6IkehXVEvUELlpo1SAf1c8PR';
				AV.init({
					appId: APP_ID,
					appKey: APP_KEY
				});
				var mthis = this;
				var query = new AV.Query('Business');
				query.find().then(function(products) {
					for(var i = 0; i < products.length; i++) {
						if(mthis.geturl() == products[i].id) {
							mthis.products = products[i].attributes.img[0];
							mthis.name = products[i].attributes.name;
						}
					}
					// 查询到商品后，在前端展示到相应的位置中。
				}).catch(function(error) {
					alert(JSON.stringify(123));
				});
			},
			methods: {
				geturl: function() {
					url = location.search;
					c_start = url.indexOf(name + "=")
					if(c_start != -1) {
						c_start = c_start + name.length + 1
						c_end = url.indexOf("&", c_start);
						if(c_end == -1) c_end = url.length;
						return unescape(url.substring(c_start, c_end));
					}
					return "";
				},
				mayueretu:function  () {
					history.go(-1);
				},
				shoucang1:function(){
					if (vue.shoucang=="收藏") {
						vue.shoucang = "已收藏";
					}

					
				}
			},
		});